(**********************************************************************

    :Program.    StringConv.def
    :Contents.   string formatting procedures
    :Author.     Nicolas Benezan [bne]
    :Address.    Postwiesenstr. 2, D7000 Stuttgart 60
    :Phone.      711/333679
    :Copyright.  Public Domain
    :Language.   Modula-2
    :Translator. M2Amiga A+L V3.2d
    :History.    V1.0a [bne] 11.May.1989

**********************************************************************)

DEFINITION MODULE StringConv;

PROCEDURE ConversionOk():BOOLEAN;
(*:Result.      FALSE if there's been an error since the last call
  :Result.      to ConversionOk().
*)

PROCEDURE IntToStr(    Int:LONGINT;
                   VAR String:ARRAY OF CHAR);
(*:Semantic.    Converts an INTEGER, CARDINAL or LONGINT variable into
  :Semantic.    a String (decimal).
*)

PROCEDURE IntToHex(    Int:LONGINT;
                   VAR String:ARRAY OF CHAR);
(*:Semantic.    Converts an INTEGER, CARDINAL or LONGINT variable into
  :Semantic.    a String (hexadecimal).
*)

PROCEDURE StrToInt(String:ARRAY OF CHAR):LONGINT;
(*:Semantic.    Converts a String into a LONGINT value
*)

END StringConv.

